import React, { Component, Fragment } from 'react'
import { BrowserRouter } from 'react-router-dom'
import Header from './components/header/index'
import Home from './pages/home/index'
import store from './store/index'
import { Provider } from 'react-redux'
import './static/golStyle.css'
import './static/nomalize.css'
import './static/iconfont.css'
import './static/animate.css'
import { api } from './api'

React.$api = api

class App extends Component {
  render() {
    return (
      <Fragment>
        <Provider store={store}>
          <Fragment>
              <BrowserRouter>
                <Fragment>
                  <Header />
                  <Home />
                </Fragment>
              </BrowserRouter>
          </Fragment>
        </Provider>
      </Fragment>
    )
  }
}

export default App
